-
Notifications
You must be signed in to change notification settings - Fork 3
Karkakol/add active simulcast encodings #56
Conversation
# Conflicts: # MembraneRTC/src/main/java/org/membraneframework/rtc/InternalMembraneRTC.kt # MembraneRTC/src/main/java/org/membraneframework/rtc/RTCEngineCommunication.kt # MembraneRTC/src/main/java/org/membraneframework/rtc/RTCEngineListener.kt # MembraneRTC/src/main/java/org/membraneframework/rtc/SimulcastConfig.kt # MembraneRTC/src/main/java/org/membraneframework/rtc/models/Endpoint.kt
# Conflicts: # MembraneRTC/src/main/java/org/membraneframework/rtc/InternalMembraneRTC.kt # MembraneRTC/src/main/java/org/membraneframework/rtc/RTCEngineListener.kt # MembraneRTC/src/main/java/org/membraneframework/rtc/events/Event.kt # MembraneRTC/src/main/java/org/membraneframework/rtc/models/Endpoint.kt # MembraneRTC/src/main/java/org/membraneframework/rtc/models/TrackContext.kt
.idea/gradle.xml
Outdated
<option name="externalProjectPath" value="$PROJECT_DIR$" /> | ||
<option name="gradleJvm" value="Embedded JDK" /> | ||
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's weird, is it needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file should be ignored
@@ -7,13 +7,15 @@ | |||
</inspection_tool> | |||
<inspection_tool class="PreviewApiLevelMustBeValid" enabled="true" level="ERROR" enabled_by_default="true"> | |||
<option name="composableFile" value="true" /> | |||
<option name="previewFile" value="true" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's also weird, also is it needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, .idea shoud be git ignored
import org.membraneframework.rtc.utils.Metadata | ||
|
||
data class Endpoint( | ||
val id: String, | ||
val type: String, | ||
val metadata: Metadata? = mapOf(), | ||
val trackIdToMetadata: Map<String, Metadata?> = mapOf() | ||
val trackIdToMetadata: Map<String, Metadata?> = mapOf(), | ||
val tracks: Map<String, TracksAdded.Data.TrackData> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here too we have trackIdToMetadata
and tracks
, if it's user facing class it would be confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also an endpoint might be a local endpoint, do we update it in that case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it's user facing it doesn't look nice to me (the TracksAdded.Data.TrackData
type is too long and TracksAdded
event is not user facing. Consider creating a new type maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary data is removed
MembraneRTC/src/main/java/org/membraneframework/rtc/models/TrackContext.kt
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also did you check my comment:
Also an endpoint might be a local endpoint, do we update it in that case?
import org.membraneframework.rtc.SimulcastConfig | ||
import org.membraneframework.rtc.utils.Metadata | ||
|
||
data class TrackData(val metadata: Metadata?, val simulcastConfig: SimulcastConfig?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may document this too if it's user-facing
No description provided.